package com.ruoyi.system.api.domain;

import com.ruoyi.system.api.domain.File;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 流水号配置对象 sys_serial
 * 
 * @author ruoyi
 * @date 2023-04-14
 */
@ApiModel("流水号配置对象")
public class SysSerial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号id */
    private Long serialId;

    /** 编号名称 */
    @Excel(name = "编号名称")
    private String serialName;

    /** 应用场景 */
    private Integer typeId;

    private Integer currentValue;

    private String currentSplitValue;

    private Integer nextValue;

    private Integer isRel;

    private Long relId;

    /** 删除标识 0正常 1删除 */
    private Integer delFlag;

    private List<File> fileList;

    /**创建人*/
    private String createUserName;

    public void setSerialId(Long serialId) 
    {
        this.serialId = serialId;
    }

    public Long getSerialId() 
    {
        return serialId;
    }
    public void setSerialName(String serialName)
    {
        this.serialName = serialName;
    }

    public String getSerialName() 
    {
        return serialName;
    }
    public void setTypeId(Integer typeId) 
    {
        this.typeId = typeId;
    }

    public Integer getTypeId() 
    {
        return typeId;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    public List<File> getFileList() {
        if(fileList == null) return new ArrayList<>(0);
        return fileList;
    }

    public void setFileList(List<File> fileList) {
        this.fileList = fileList;
    }

    public Integer getCurrentValue() {
        return currentValue;
    }

    public void setCurrentValue(Integer currentValue) {
        this.currentValue = currentValue;
    }

    public Integer getNextValue() {
        return nextValue;
    }

    public void setNextValue(Integer nextValue) {
        this.nextValue = nextValue;
    }

    public String getCurrentSplitValue() {
        return currentSplitValue;
    }

    public void setCurrentSplitValue(String currentSplitValue) {
        this.currentSplitValue = currentSplitValue;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public Integer getIsRel() {
        return isRel;
    }

    public void setIsRel(Integer isRel) {
        this.isRel = isRel;
    }

    public Long getRelId() {
        return relId;
    }

    public void setRelId(Long relId) {
        this.relId = relId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("serialId", getSerialId())
            .append("orgId", getOrgId())
            .append("serialName", getSerialName())
            .append("typeId", getTypeId())
            .append("createUserId", getCreateUserId())
            .append("createTime", getCreateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
